package kz.kstu.shop.facade.ejb.impl;

import kz.kstu.shop.business.entity.Synchronizable;
import kz.kstu.shop.business.entity.guide.Product;
import kz.kstu.shop.business.server.api.GuideService;
import kz.kstu.shop.facade.ejb.api.GuideFacade;

import javax.ejb.Stateless;
import java.util.List;

/**
 * @author Filipp_Stankevich
 *         created: 26.07.11 19:55
 */
@Stateless
public class GuideFacadeBean extends AbstractFacadeBean implements GuideFacade{

    public List<Product> findAllProducts() {
       return getGuideService().findAllProducts();
    }

    private GuideService getGuideService() {
        return getService(GuideService.class);
    }

}
